

/* blog.css - 博客页面整体布局样式 */

/* 1. 页面基础样式 */
body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: "AlibabaPuHuiTi", sans-serif;
}

/* SVG图标样式 - 确保在黑色背景上显示为白色 */
img[src$=".svg"]:not(.modal-image) {
    filter: invert(100%) brightness(100%);
}

/* 特别处理天气图标，确保其保持原有样式但颜色为白色 */
.weather {
    filter: invert(100%) brightness(100%);
}

/* 防止模态窗中的图片被反色 */
.image-modal img {
    filter: none !important;
}

/* 2. 主容器样式 */
.main-content {
    background-color: #000000;
    flex-grow: 1;
    width: 50%;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
}

/* 3. 分割线样式 */
.main-content hr {
    margin: 35px auto;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    width: 80%;
}

/* 4. 极简留白美学标题区域 */
.introduce {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.title-wrapper {
    margin-bottom: 40px;
}

.title {
    font-size: 2.8em;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eee;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.meta-item img {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.meta-item:hover img {
    opacity: 1;
}

.blog-date {
    font-family: 'SFMono-Regular', Consolas, monospace;
    letter-spacing: 1px;
}

.blog-tags {
    gap: 6px;
}

.blog-tag {
    font-size: 13px;
    color:#eee;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.blog-tag:hover {
    color: rgba(255, 255, 255, 0.8);
}

.blog-tag:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.3);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 auto 40px;
    max-width: 200px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 5. 内容区域样式 */
.content {
    background-color: rgb(0, 0, 0);
}


/* 6. 工具区域样式 */
.tool {
    margin-top: 20px;
}

.share {
    text-align: center;
}

/* From Uiverse.io by adamgiebl */
.share button {
    font-size: 16px;
    background: rgb(0, 0, 0);
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    margin: 0 auto;
}

.share button span {
    transition: all 0.3s ease-in-out;
    font-size: 14px;
}

.share button svg {
    width: 70%;
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
    margin-right: 10px;
    fill: white;
}

.share button:hover .share-svg {
    animation: fly-1 0.6s ease-in-out infinite alternate;
}

.share button:hover svg {
    transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

.share button:hover span {
    transform: translateX(5em);
}

.share button:active {
    transform: scale(0.95);
}

@keyframes fly-1 {
    from {
        transform: translateY(0.1em);
    }
    to {
        transform: translateY(-0.1em);
    }
}



.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-image.active {
    opacity: 1;
    transform: scale(1);
}

/* 修复模态窗图片反色问题 */
.modal-image {
    filter: none !important;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 10. 其他元素样式 - files和iframe样式已迁移到md.css */

/* 11. 响应式设计 */
@media screen and (max-width: 768px) {
    .main-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px;
    }
    
    .introduce {
        padding: 40px 0 30px;
    }
    
    .title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-divider {
        max-width: 120px;
        margin-bottom: 30px;
    }
}



   